<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<link href="/assets/css/menubase.css" rel="stylesheet" type="text/css" />
	<script src="/assets/js/calendarLocale.js"></script>
</h:head>
<h:body>
	<h:form id="empform">
		<p:confirmDialog global="true" showEffect="fade" hideEffect="fade">
			<p:commandButton value="是" type="button"
				styleClass="ui-confirmdialog-yes" icon="ui-icon-check" />
			<p:commandButton value="否" type="button"
				styleClass="ui-confirmdialog-no" icon="ui-icon-close" />
		</p:confirmDialog>
		<p:growl id="msgs" showDetail="true" />
		<p:toolbar id="createtoolbar">
			<f:facet name="left">
				<p:commandButton value="保存" icon="ui-icon-disk" process="empform"
					id="submitBtn" update="empinfo msgs"
					actionListener="#{orgController.update}" style="margin-left:10px" />
			</f:facet>
		</p:toolbar>
		<br />
		<div id="empDiv">
			<p:panelGrid id="empinfo" style="margin-top:5px; " cellpadding="4">
				<p:row>
					<p:column style="font-weight: bold;">
						<h:outputText value="ID:" />
					</p:column>
					<p:column style="text-align: left;">
						<h:outputText value="#{orgController.current.code}" />
					</p:column>
				</p:row>
				<p:row>
					<p:column style="font-weight: bold;">
						<h:outputText value="姓名:" />
					</p:column>
					<p:column style="text-align: left;">
						<h:inputText value="#{orgController.current.name}" />
					</p:column>
				</p:row>

				<p:row>
					<p:column style="font-weight: bold;">
						<h:outputText value="电话:" />
					</p:column>
					<p:column style="text-align: left;">
						<h:inputText value="#{orgController.current.telephone}" />
					</p:column>
				</p:row>

				<p:row>
					<p:column style="font-weight: bold;">
						<h:outputText value="地址:" />
					</p:column>
					<p:column style="text-align: left;">
						<h:inputText value="#{orgController.current.address}" />
					</p:column>
				</p:row>
				<p:row>
					<p:column style="font-weight: bold;">
						<h:outputText value="旧密码:" />
					</p:column>
					<p:column style="text-align: left;">
						<h:inputSecret id="pwdold" value="#{orgController.pwd}"></h:inputSecret>
					</p:column>
				</p:row>
				<p:row>
					<p:column style="font-weight: bold;">
						<h:outputText value="新密码:" />
					</p:column>
					<p:column style="text-align: left;">
						<h:inputSecret id="pwdnew1" value="#{orgController.pwd3}"></h:inputSecret>
					</p:column>
				</p:row>
				<p:row>
					<p:column style="font-weight: bold;">
						<h:outputText value="新密码确认:" />
					</p:column>
					<p:column style="text-align: left;">
						<h:inputSecret id="pwdnew2" value="#{orgController.pwd4}"></h:inputSecret>
					</p:column>
				</p:row>
			</p:panelGrid>
		</div>
	</h:form>
</h:body>
</html>